package service;

import entity.Person;

import java.sql.SQLException;
import java.util.List;

public interface PersonService {
    boolean delPerson(int pid) throws SQLException, ClassNotFoundException;
    List<Person> getPersonList() throws SQLException, ClassNotFoundException;
    boolean addPerson (String name, String sex, int age , String rank ,String department) throws SQLException, ClassNotFoundException;
    boolean updatePerson(String name,String sex,Integer age,String rank,String department,Integer id) throws SQLException, ClassNotFoundException;
}
